
<%
    String user ="";
    if (session.getAttribute("username") != null) {
        user = session.getAttribute("username").toString();
    } else {
        response.sendRedirect("../login.jsp");
    }
    
%>
